<ion-view>
  <ion-header-bar class="bar bar-header header">
    <button on-touch="goback()" class="button return-btn">返回</button>
    <label class="item-input-wrapper hd-find-box">
      <i class="icon hd-find-icon"></i>
      <input type="search" ng-model="searchKey" class="hd-find-text" placeholder="请输入关键字搜索好友">
    </label>
    <button class="button hd-red-btn" ng-click="search()">搜索</button>
  </ion-header-bar>
    <ion-content class="gray-bg" has-bouncing="true">
      <div class="search-on-hover" ng-if="searchMemberList.memberList.length==0">
        <i class="search-on-icon"></i>
        <em class="search-on-txt">没有搜索到相关的用户</em>
      </div>
      <div class="list user-list" ng-if="searchMemberList.memberList.length>0">
        <div class="item user-li-tit">已搜索到{{searchMemberList.memberList.length}}位用户</div>
        <a class="item item-avatar-left" ng-repeat="member in searchMemberList.memberList">
          <button type="button" ng-if="!member.isAttend" ng-click="foucsMember(member.member_id,$index)" class="button button-small user-care-li-btn"><i class="dimple-care-icon"></i>关注</button>
          <button type="button" ng-if="member.isAttend"  ng-click="noFoucsMember(member.member_id,$index)" class="button button-small user-care-li-btn">取消关注</button>
          <div class="user-li-hd" ng-click="go2OtherHome(member.member_id)">
            <em class="user-li-hd-pic"><img ng-src="{{picPath}}{{member.member_img_url}}" alt=""/></em>
            <i class="user-li-hd-icon"><img ng-src="{{picPath}}{{member.mr_img_url}}" alt=""/></i>
          </div>
          {{member.member_name}}
        </a>
      </div>
    </ion-content>
</ion-view>
